package com.shemy.sshiro.utils;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Description
 * @Author Dzsom
 * @Date 2019-05-14 10:30
 * @Encoding UTF-8
 * @Version 1.0
 **/
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token){
        this.token=token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
